package main

import (
	"gintest/api"
	"gintest/config"
	"gintest/database"
	"github.com/gin-gonic/gin"
)

func main() {
	gin.ForceConsoleColor()
	database.Setup()
	r := gin.Default()
	api.RegisterProductRoutes(r)
	config.Routes(r)
	r.Run() // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
}
